package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Classify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassifyMapper {
    /**
     * 商品分类列表
     * @return
     */
    public List<Classify>classifyList();

    /**
     *
     * @param parentId
     * @return
     */
    public List<Classify>classifyListByParentId(@Param("parentId") int parentId);

    public List<Classify>getClassifyList(@Param("no") int no);

    public int count();

    public List<Classify>getClassifyByOne();

    public int add(Classify classify);

    public int add1(Classify classify);

    public int chackName(@Param("name") String name);

    public int delete(@Param("id") int id);

    public int chackParentId(@Param("parentId") int parentId);

    public Classify xiangQing(@Param("id") int id);

    public int update1(Classify classify);

    public int update2(Classify classify);

    public int update3(Classify classify);

    public int update4(Classify classify);
}
